package com.ncwu.stock.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ncwu.common.annotation.Excel;
import com.ncwu.common.core.domain.BaseEntity;

/**
 * 库存管理对象 tb_stock
 * 
 * @author lq
 * @date 2025-05-14
 */
public class TbStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品唯一ID */
    @Excel(name = "商品唯一ID")
    private Long productId;

    /** 商品库存数量 */
    @Excel(name = "商品库存数量")
    private Long stock;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("stock", getStock())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
